package com.atguigu.tingshu.account.mapper;

import com.atguigu.tingshu.model.account.UserAccountDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserAccountDetailMapper extends BaseMapper<UserAccountDetail> {

    /**
     * 获取用户充值记录
     * @param pageParam
     * @param userId
     * @return
     */
    IPage<UserAccountDetail> selectUserRechargePage(IPage<UserAccountDetail> pageParam, Long userId);

    /**
     * 获取用户消费记录
     * @param pageParam
     * @param userId
     * @return
     */
    IPage<UserAccountDetail> selectUserConsumePage(IPage<UserAccountDetail> pageParam, Long userId);
}
